#!/usr/bin/env python2.5

# what is this ? Cookie: dev_appserver_login="nickmilon@gmail.com:False:119222404092061841222"; django_language=en
#    #print "HEADERS\n" + str(self.response.headers)
#    print dir(self.request)   #get_all("Accept") 
#    print self.request
#    for  key in self.request.environ.keys():
#         print [key, self.request.environ[key]]
import sys

  
import datetime
import base64
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app

##import  milonpy.NMtbl as tbl
##tbl.GLNMdictSkipValidation=True
##geotb=tbl.NMtableGeo()
##geotb.CSVload('geodump.csv', 1, skipValidations=True, colkey='_info_')

##tmpl1=html.NMtmpl('tmpls/basenm.html')
 
##tmpldic={}
##tmpltst=html.NMtmpl ('tmpls/aux_head.html')
##tmplMeta=html.NMtmpl('tmpls/header.html')
##tmpl_row=html.NMtmpl('tmpls/row_cntr.html')
 
 
class country(webapp.RequestHandler): 
  def get(self, lng, cntr):   
      self.response.out.write ('fff')     
      print  sys.path 
      #sys.path.append("/home/milon/gae")  
      print   sys.path 
      import  nmpacks 
      
application = webapp.WSGIApplication(
                                     [ 
                                      ('/geo/(?P<lang>en|el|de)/(?P<country>.*?)/*', country)  
                                      ],
                                     debug=True)

def main():
    run_wsgi_app(application)
if __name__ == "__main__":
  main() 
